package com.base.app.entity;

import java.util.List;

import com.mysteel.core.Entity;

/**
 * 
 * @author chendonglin
 *
 */

public class Article implements Entity
{
	private static final long serialVersionUID = -5259497995110584736L;
	
	private long id;					//主键ID
	private long channelId;				//该文章所属频道
	private String title;				//文章标题
	private String content;				//文章类容
	private String subTitle;			//文章短标题
	private String keyword;				//关键字
	private String summary;				//文章摘要
	private String author;				//文章作者
	private String source;				//来源
	private boolean status;				//状态
	private int level;					//级别
	
	private long adminId;				//管理员ID
	private String adminName;			//管理员姓名
	
	private long createTime;			//创建时间
	private long lastAccess;			//最后修改时间
		
	private String lastAccessEditor;		//最后修改者
	
	private List<ArticlePicture> pictures;	//文章下的所有图片

	
	
	public Article()
	{
		super ();
	}

	public Article(long id, long channelId, String title, String content,
			String subTitle, String keyword, String summary, String author,
			String source, boolean status, int level, long adminId,
			String adminName, long createTime, long lastAccess,
			String lastAccessEditor, List<ArticlePicture> pictures)
	{
		super ();
		this.id = id;
		this.channelId = channelId;
		this.title = title;
		this.content = content;
		this.subTitle = subTitle;
		this.keyword = keyword;
		this.summary = summary;
		this.author = author;
		this.source = source;
		this.status = status;
		this.level = level;
		this.adminId = adminId;
		this.adminName = adminName;
		this.createTime = createTime;
		this.lastAccess = lastAccess;
		this.lastAccessEditor = lastAccessEditor;
		this.pictures = pictures;
	}

	public long getId()
	{
		return id;
	}

	public void setId(long id)
	{
		this.id = id;
	}

	public long getChannelId()
	{
		return channelId;
	}

	public void setChannelId(long channelId)
	{
		this.channelId = channelId;
	}

	public String getTitle()
	{
		return title;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}

	public String getSubTitle()
	{
		return subTitle;
	}

	public void setSubTitle(String subTitle)
	{
		this.subTitle = subTitle;
	}

	public String getKeyword()
	{
		return keyword;
	}

	public void setKeyword(String keyword)
	{
		this.keyword = keyword;
	}

	public String getSummary()
	{
		return summary;
	}

	public void setSummary(String summary)
	{
		this.summary = summary;
	}

	public String getAuthor()
	{
		return author;
	}

	public void setAuthor(String author)
	{
		this.author = author;
	}

	public String getSource()
	{
		return source;
	}

	public void setSource(String source)
	{
		this.source = source;
	}

	public boolean isStatus()
	{
		return status;
	}

	public void setStatus(boolean status)
	{
		this.status = status;
	}

	public int getLevel()
	{
		return level;
	}

	public void setLevel(int level)
	{
		this.level = level;
	}

	public long getAdminId()
	{
		return adminId;
	}

	public void setAdminId(long adminId)
	{
		this.adminId = adminId;
	}

	public String getAdminName()
	{
		return adminName;
	}

	public void setAdminName(String adminName)
	{
		this.adminName = adminName;
	}

	public long getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(long createTime)
	{
		this.createTime = createTime;
	}

	public long getLastAccess()
	{
		return lastAccess;
	}

	public void setLastAccess(long lastAccess)
	{
		this.lastAccess = lastAccess;
	}

	public String getLastAccessEditor()
	{
		return lastAccessEditor;
	}

	public void setLastAccessEditor(String lastAccessEditor)
	{
		this.lastAccessEditor = lastAccessEditor;
	}

	public List<ArticlePicture> getPictures()
	{
		return pictures;
	}

	public void setPictures(List<ArticlePicture> pictures)
	{
		this.pictures = pictures;
	}

	public static long getSerialversionuid()
	{
		return serialVersionUID;
	}
	
}
